package com.ruoyi.jetLinks.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.jetLinks.domain.vo.InterceptionVo;
import com.ruoyi.jetLinks.service.INmEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class InterceptionController {
    @Autowired
    private INmEquipmentService nmEquipmentService;

    @GetMapping("/getInfoById")
    public AjaxResult getInfoById(InterceptionVo interceptionVo) {
        return AjaxResult.success(nmEquipmentService.selectNmEquipmentById(interceptionVo.getId()));
    }
}
